<nav class="navbar-default" role="navigation">

<ul class="nav nav-pills nav-stacked">
  <li>
    <a data-toggle="collapse" href="#collapse-server-action" aria-expanded="false" aria-controls="collapse-server-action" style="color: inherit;" >
            服务
        <span class="fa fa-chevron-right pull-right"></span>    
    </a>
    <ul class="nav panel-collapse collapse" id="collapse-server-action">
      <li ><a id="nav-container_list" style="text-align: right;" href="/docker/container_list">Docker 容器</a></li>
      <!-- <li ><a id="nav-process_list" style="text-align: right;" href="/supervisor/process_list">Supervisor Process</a></li> -->
    </ul>

  </li>

  <!-- <li>
    <a data-toggle="collapse" href="#collapse-ops-manage" aria-expanded="false" aria-controls="collapse-ops-manage" style="color: inherit;" >
            Ops Manage
        <span class="fa fa-chevron-right pull-right"></span>
    </a>
    <ul class="nav panel-collapse collapse" id="collapse-ops-manage">
      <li ><a id="nav-job_list" style="text-align: right;" href="/jenkins/job_list">Job List</a></li>
      <li ><a id="nav-file_server_list" style="text-align: right;" href="/filemanager/file_server_list">File Manager</a></li>
    </ul>
  </li> -->

  <li>
    <a data-toggle="collapse" href="#collapse-setting" aria-expanded="false" aria-controls="collapse-setting" style="color: inherit;" >
            设置
        <span class="fa fa-chevron-right pull-right"></span>
    </a>
    <ul class="nav panel-collapse collapse" id="collapse-setting">
      <li ><a id="nav-my_account" style="text-align: right;" href="/account/my_account">账户</a></li>
    </ul>
  </li>
  {% if request.session.role == "admin" %}
  <li>
    <a data-toggle="collapse" href="#collapse-admin" aria-expanded="false" aria-controls="collapse-admin" style="color: inherit;" >
            管理
        <span class="fa fa-chevron-right pull-right"></span>
    </a>
    <ul class="nav panel-collapse collapse" id="collapse-admin">
      <li ><a id="nav-user_list" style="text-align: right;" href="/account/user_list">用户列表</a></li>
      <li ><a id="nav-server_list" style="text-align: right;" href="/server/server_list">服务列表</a></li>
      <li ><a id="nav-action_log_list" style="text-align: right;" href="/action_log/action_log_list">行为日志</a></li>
    </ul>
  </li>
  {% endif %}
</ul>

</nav>

<style type="text/css">
  a{color: inherit;}
</style>

